#include <stdio.h>

int main(int argc, char *argv[])
{
    char c;

    while (1)
    {
        printf("Input a char: ");
        scanf("%c", &c);
        printf("Hex result: %02X\n", c);
    }

    return 0;
}
